cmake_minimum_required(VERSION 3.10)
project(surco VERSION 1.0.0 LANGUAGES C)

add_executable(${PROJECT_NAME}
comm.c
recv.c
)

add_executable(send
comm.c
send.c
)

add_executable(router
comm.c
router.c
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE
    zmq
    pthread
)

target_link_libraries(send
    PRIVATE
    zmq
    pthread
)
target_link_libraries(router
    PRIVATE
    zmq
    pthread
)
install (TARGETS ${PROJECT_NAME} DESTINATION bin)


